#include"ThreadPool.hpp"


int main()
{
  srand((unsigned long)time(nullptr));
  ThreadPool<int> *tp=new ThreadPool<int>;
  tp->start();
  //主线程派发任务
  while(1)
  {
    int num=rand()%100;
    sleep(1);
    tp->Push(num);
    
  }
  return 0;
}
